home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 037a / svgabgi3.zip / TWK256.INC < prev    next >
Text File  |  1991-08-29  |  901b  |  39 lines

  1. (************************************************)
  2. (*                         *)
  3. (*      Tweaked 256 BGI driver defines    *)
  4. (*        Copyright (c) 1991        *)
  5. (*        Jordan Hargraphix Software        *)
  6. (*                        *)
  7. (************************************************)
  8.  
  9. type DacPalette256 = array[0..255] of array[0..2] of Byte;
  10.  
  11. (* These are the currently supported modes *)
  12. const
  13.   TWK320x400x256    = 0;
  14.   TWK320x480x256    = 1;
  15.   TWK360x480x256    = 2;
  16.   TWK376x564x256    = 3;
  17.   TWK400x564x256    = 4;
  18.   TWK400x600x256    = 5;
  19.  
  20.   TRANS_COPY_PIX    = 8;
  21.  
  22. (* Setvgapalette sets the entire 256 color palette *)
  23. (* PalBuf contains RGB values for all 256 colors   *)
  24. (* R,G,B values range from 0 to 63               *)
  25. procedure SetVGAPalette256(PalBuf : DacPalette256);
  26. var
  27.   Reg : Registers;
  28.  
  29. begin
  30.   reg.ax := $1012;
  31.   reg.bx := 0;
  32.   reg.cx := 256;
  33.   reg.es := Seg(PalBuf);
  34.   reg.dx := Ofs(PalBuf);
  35.   intr($10,reg);
  36. end;
  37.  
  38.  
  39.